home *** CD-ROM | disk | FTP | other *** search
/ Champak 50 / Volume 50 - JOGO DISK .iso / Games / moonstonemadness.swf / scripts / __Packages / MoonStoneSky.as < prev    next >
Text File  |  2007-09-27  |  643b  |  28 lines

  1. class MoonStoneSky extends Library.State
  2. {
  3.    function MoonStoneSky(__mcRef)
  4.    {
  5.       super(__mcRef);
  6.       this.setState("Idle");
  7.       this.mcRef.mcState.mcHit._visible = false;
  8.       MiniGameManager.__get__Instance().doAddListener(this);
  9.    }
  10.    function onCatched()
  11.    {
  12.       this.setState("Out");
  13.    }
  14.    function get Ref()
  15.    {
  16.       return this.mcRef;
  17.    }
  18.    function doOut()
  19.    {
  20.       if(this.isStateComplete())
  21.       {
  22.          MiniGameManager.__get__Instance().doRemoveListener(this);
  23.          this.mcRef.swapDepths(MiniGameManager.REMOVE_DEPTH);
  24.          this.mcRef.removeMovieClip();
  25.       }
  26.    }
  27. }
  28.